package com.hehe.config;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.checkerframework.checker.units.qual.A;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Component
@ConfigurationProperties(prefix = "gateway.white")
@RefreshScope
public class WhiteUrlsConfig {
    private List<String> allowUrls;
}
//import org.springframework.boot.context.properties.ConfigurationProperties;
//import org.springframework.stereotype.Component;
//
//import java.util.List;
//@Data
//@AllArgsConstructor
//@NoArgsConstructor
//@Component
//@ConfigurationProperties(prefix = "spring.cloud.gateway")
//@RefreshScope
//public class WhiteUrlsConfig {
//    private List<Route> routes;
//
//    @Data
//    @AllArgsConstructor
//    @NoArgsConstructor
//    public static class Route {
//        private String id;
//        private String uri;
//        private List<String> predicates;
//
//    }
//}
